package com.jsh.erp.api;

import com.jsh.erp.datasource.entities.User;
import com.jsh.erp.utils.BaseResponseInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "jsh-system",path = "/jshERP-boot/user")
public interface LoginRemoteClient {
    @PostMapping(value = "/login")
    public BaseResponseInfo login(@RequestBody User userParam) throws Exception;

    @GetMapping(value = "/logout")
    public BaseResponseInfo logout();
}
